package com.emep.changzhi.analyse.repository.datamonitor.day;

import com.emep.changzhi.analyse.entity.datamonitor.day.DataDayFoodFume;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author yangj
 * @version V1.0
 * @Description: 餐饮油烟监测_日数据表持久层
 * @date 2018/2/27  15:07
 */
public interface DataDayFoodFumeRepository extends CrudRepository<DataDayFoodFume,Long> {

    @Query("select * from data_day_food_fume limit :pageSize")
    List<DataDayFoodFume> foodFumeHome(@Param("pageSize") Integer pageSize);
    @Query("select * from data_day_food_fume where token(id)>token(:id) limit :pageSize")
    List<DataDayFoodFume> foodFumeFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);
}
